package com.itcodai.utils.lombok;

//import lombok.*;

import java.io.File;

/**
 * @author c-fanqj
 * @date 2022/11/6
 * @apiNote lombok测试类
 */
public class TestClass {

    //@SneakyThrows
    public static void main(String[] args) /*throws IOException*/ {
        File file = new File("d:\\111.txt");
        //@Cleanup
        //InputStream inputStream = new FileInputStream(file);
        int len;
        byte[] bs = new byte[1024];
       /* while ((len = inputStream.read(bs)) != -1) {
            System.out.println("content:" + new String(bs, 0, len));
        }*/
    }

    /*@ToString(of = {"name", "age"}, exclude = {"frendly"})
    @Getter(value = AccessLevel.PUBLIC)
    @Setter(value = AccessLevel.PUBLIC)
    @NoArgsConstructor(staticName = "of", access = AccessLevel.PRIVATE)
    @RequiredArgsConstructor(access = AccessLevel.PACKAGE)
    @AllArgsConstructor(access = AccessLevel.PUBLIC)*/
    public static class Person {
        //@NonNull
        private String name;
        private int age;
        private boolean frendly;
    }

    /*@ToString
    @Data
    @RequiredArgsConstructor
    @NoArgsConstructor*/
    public static class Animal {
        //@NonNull
        private String name;
        private int age;
        //@Getter @Setter
        private boolean funny;
        //@Tolerate
        //Animal() {}
    }

}
